package com.mindata.blockchain.socket.common.msg;

import com.mindata.blockchain.block.instruction.Instruction;

import java.util.List;

public class InstructionMsg extends BaseMsg {
    private List<Instruction> instructions;

    public InstructionMsg() {
    }

    public InstructionMsg(List<Instruction> instructions) {
        this.instructions = instructions;
        this.setVoteType(MsgType.INSTRUCTION);
    }

    public List<Instruction> getInstructions() {
        return instructions;
    }

    public void setInstructions(List<Instruction> instructions) {
        this.instructions = instructions;
    }

    @Override
    public String toString() {
        return "InstructionMsg{" +
                "instructions:\\n" + instructions.toString() +
                '}';
    }
}
